package cn.cheln.support.images;

import java.io.File;
import java.io.FilenameFilter;
import java.util.Arrays;
import java.util.HashSet;

public class FilenameExtFilter
  implements FilenameFilter
{
  private HashSet<String> mExts = new HashSet();

  public FilenameExtFilter(String[] paramArrayOfString)
  {
    if (paramArrayOfString == null)
      return;
    this.mExts.addAll(Arrays.asList(paramArrayOfString));
  }

  public boolean accept(File paramFile, String paramString)
  {
    if (new File(paramFile + File.separator + paramString).isDirectory())
      return true;
    int i = paramString.lastIndexOf(46);
    if (i != -1)
      return contains(((String)paramString.subSequence(i + 1, paramString.length())).toLowerCase());
    return false;
  }

  public boolean contains(String paramString)
  {
    return this.mExts.contains(paramString.toLowerCase());
  }
}

/* Location:           H:\360云盘\lewa_explorer_3.0\bin\FileApp_orig_dex2jar.jar
 * Qualified Name:     cn.cheln.support.images.FilenameExtFilter
 * JD-Core Version:    0.5.2
 */